package com.ssy.lingxi.marketing.model.bo;

import com.ssy.lingxi.marketing.handler.convert.JpaJsonToActivityDefinedBOConverter;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Convert;
import java.io.Serializable;

/**
 * 活动BO
 * @author yzc
 * @version 2.0.0
 * @date 2021/11/22
 */
@Getter
@Setter
public class ActivityBO implements Serializable {

    private static final long serialVersionUID = 5907328877300624137L;

    public ActivityBO() {
    }


    public ActivityBO(Long activityId, Integer belongType, Integer activityType, ActivityDefinedBO activityDefined, String activityName, Long startTime, Long endTime, Long memberId, Long roleId) {
        this.activityId = activityId;
        this.belongType = belongType;
        this.activityType = activityType;
        this.activityDefined = activityDefined;
        this.activityName = activityName;
        this.startTime = startTime;
        this.endTime = endTime;
        this.memberId = memberId;
        this.roleId = roleId;
    }


    /**
     * 活动id
     */
    private Long activityId;

    /**
     * 所属类型
     */
    private Integer belongType;

    /**
     * 活动类型
     */
    private Integer activityType;

    /**
     * 活动名称
     */
    private String activityName;

    /**
     * 活动开始时间
     */
    private Long startTime;

    /**
     * 活动结束时间
     */
    private Long endTime;

    /**
     * 活动定义
     */
    @Convert(converter = JpaJsonToActivityDefinedBOConverter.class)
    private ActivityDefinedBO activityDefined;

    /**
     * 会员id
     */
    private Long memberId;

    /**
     * 会员角色id
     */
    private Long roleId;

}
